package com.sg.dto.biz.pbff.common;

import com.sg.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffDataSeparationDto
 * @使用场景
 */
@Data
public class BffDataSeparationDto extends PagedDto implements Serializable {

    /**
     * 分离数据表主键ID
     */
    @ApiModelProperty("分离数据表主键ID")
    private String operationSeparatedDataId;

    /**
     * 表ID
     */
    @ApiModelProperty("表ID")
    private String tableId;

    /**
     * 中文表名
     */
    @ApiModelProperty("中文表名")
    private String tableCnName;

    /**
     * 英文表名
     */
    @ApiModelProperty("英文表名")
    private String tableEnName;

    /**
     * 个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 操作人就职记录ID
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffDataSeparationDto that = (BffDataSeparationDto) o;
        return operationSeparatedDataId == that.operationSeparatedDataId && tableId == that.tableId && tableCnName == that.tableCnName && tableEnName == that.tableEnName && userId == that.userId && idCardName == that.idCardName && nickName == that.nickName && userFace == that.userFace && operationInductionId == that.operationInductionId && operateTime == that.operateTime;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), operationSeparatedDataId, tableId, tableCnName, tableEnName, userId, idCardName, nickName, userFace, operationInductionId, operateTime);
    }

}
